def throw_error():
    raise Exception("抛出一个异常")
    print("飞天猪")


throw_error()
